package com.cola.proxy;

import org.junit.jupiter.api.Test;

/**
 * @Grup:com.cola.proxy
 * @Auther:cola
 * @Data:2021/4/7-2021-04-12:46
 * @version:1.0
 */
public class TestDemo {
    @Test
    public void TestProxy(){
        CreateProxy cp=new CreateProxy();//用来创建的代理对象的对象
        Hotel person=new Person();
        Hotel proxy=(Hotel) cp.create(person);
        //proxy.shopping();//invoke
        proxy.reserve();
    }
}
